<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="author" content="yan<me@xiaoyan.me>">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <meta name="format-detection" content="email=no">
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-touch-fullscreen" content="no"/>
    <title>登录</title>
    <link rel="stylesheet" href="<?php echo getResourceUrl() ?>/res/assets/style.css">
    <script src="<?php echo getResourceUrl() ?>/res/assets/libs.js"></script>
</head>
<body class="login-page">
<div class="container w-xxl w-auto-xs">
    <div class="text-center" style="margin-top: 20%;">
        <div>
            <div class="js_wording">为保障帐号安全，请用微信扫码验证身份 </div>
        </div>
        <img src="https://api.dev.suixinlv.cn/qrcode/?data=<?php echo urlencode($check_url)?>&size=6" alt="">
        <br>
        <span id="login-message"></span>
    </div>
    <script>
        $(function(){var timer=setInterval(function(){$.get('<?php echo $check_url;?>&action=check',function(ret){if(ret['code']==0){if(ret['data']==1){$('#login-message').html('<i class="icon_msg_mini success"></i> 扫描成功<br><p>请在微信上进行后续操作</p>')}else if(ret['data']==3){clearInterval(timer);$('#login-message').html('<i class="icon_msg_mini warn"></i> 登录失败<p>您可以<a href="javascript:location.reload();">刷新二维码</a>重新扫描验证，或关闭窗口</p>')}else if(ret['data']==2){clearInterval(timer);$('#login-message').html('<i class="icon_msg_mini success"></i> 登录成功');setTimeout(function(){location.reload()},800)}}else{$('#login-message').html(ret['message'])}},'json')},800)});
    </script>
</div>
</body>
</html>